how to copy text on clipboard in react

68

how to copy text on clipboard in react -

onClick={() => {navigator.clipboard.writeText(this.state.textToCopy)}}

Comments

Submit
0 Comments